home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 24
/
024.d81
/
all smiles
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
7KB
|
203 lines
10 if t=0thent=1:print"[147]":load"parts",8,1
100 ifml=1then295
110 ifml=2then310
120 ifml=8then1180
130 if jg=0 then jg=5 : gosub1860
140 rem
150 dimw(99,2):lv=0:print"[147][152]";
160 w(4,1)=33:w(4,2)=5:forb=6to13:w(b,1)=21:w(b,2)=55:next
170 w(82,1)=129:w(82,2)=250:w(50,1)=129:w(50,2)=250
180 w(99,1)=21:w(99,2)=250:sl$=" "
190 w(1,1)=17:w(1,2)=50:f$="maze 1"
200 w(3,1)=65:w(3,2)=15:w(5,1)=85:w(5,2)=30:w(26,1)=129:w(26,2)=25
210 x=2:y=1:cl=13:ch=82:ml=.
220 poke53281,12:poke53280,12:d=.:x1=.:x2=.:x3=.:ok=.:ml=.
230 oo$="[147]"
240 ifjp=mzthenpb=-1:goto1010
250 fort=54272to54295:poket,0:next:poke54296,15:iflv>4thenlv=4
260 ad=1*16+0:sr=15*16+2
270 poke54284,ad:poke54285,sr:poke54282,0:poke54281,255
280 poke53281,76
290 ifml=.thenml=1:load f$+".ml",8,1
295 print"[144] press fire button to die[145][145]"
300 ifml=1thenml=2:load f$+"/c.ml",8,1
310 rem
320 ifx=2thenprint"[144]o":goto340
330 ifx=12thenprint"o"
340 gosub1720
350 j=peek(56320):ifj<>127then370
360 q=peek(54272+(1023+x+(y*40))):poke54272+(1023+x+(y*40)),abs((q)-1):goto350
370 fort=54272to54295:poket,0:next:poke54296,15
380 ad=1*16+0:sr=15*16+2
390 poke54284,ad:poke54285,sr:poke54282,0:poke54281,255:ifj<>127then420
400 ifpeek(56320)=127andd<>2then400
410 j=peek(56320)
420 ifj=119thenx1=1023+x+1:x2=y*40:ifpeek(x1+x2)<5orpeek(x1+x2)=82then530
430 ifj=123thenx1=1023+x-1:x2=y*40:ifpeek(x1+x2)<5orpeek(x1+x2)=82then530
440 ifj=126thenx1=1023+x:x2=y-1:x3=x2*40:ifpeek(x1+x3)=1then530
450 ifj=125thenx1=1023+x:x3=(y+1)*40:ifpeek(x1+x3)=1orpeek(x1+x3)=32then530
460 ifj=119thenx1=1023+x+1:x2=y*40:ifpeek(x1+x2)=32orpeek(x1+x2)=99then530
470 ifj=123thenx1=1023+x-1:x2=y*40:ifpeek(x1+x2)=32orpeek(x1+x2)=99then530
480 ifj=111thench=32:goto680
490 ifd<>2then400
500 ifd=2andsm=.thenj=126:goto530
510 ifsm=1then1070
520 goto400
530 ifd=2andj<>126thend=.:sm=.
540 x1=1023+x:x2=y*40:x3=x1+x2:pokex3,ch:poke54272+x3,cl
550 ifj=119thenx=x+1
560 ifj=123thenx=x-1
570 ifj=126theny=y-1
580 ifj=125theny=y+1
590 x3=1023+x+y*40:ch=peek(x3):cl=peek(54272+x3)
600 poke54283,.:poke54280,.
610 poke54283,w(ch,1):poke54280,w(ch,2):poke54283,abs(w(ch,1)-1)
620 ok=peek(x3)
630 ifch=3thench=5:cl=9
640 pokex3,15:pokex3+54272,0:ifok<>32andd<>1then400
650 ifok=2ord=2thend=2:goto1040
660 ifok=32thend=1:j=125:poke54283,21:poke54280,y*9:poke54283,20:goto530
670 ifch=99thend=0:goto400
680 x1=1023+x:x2=y*40:gosub1080:fort=65to73:pokex1+x2,t:forh=1to80:next:next
690 poke54283,0
700 ifok=3then740
710 ifok=19then740
720 x1=1023+x:x2=y*40:x3=x1+x2:pokex3,ch:poke54272+x3,cl
730 goto1090
740 on jp+1 goto750,790,830,870,910,950,990
750 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto660
760 ifok<>19then1090
770 ifjp=0thenjp=1:poke53281,76:printoo$"you may advance to the next level[146]!"
780 f$="maze 2":lv=lv+1:goto210
790 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto660
800 ifok<>19then1090
810 poke53281,76:printoo$"you deserve to play the next level[146]!"
820 jp=2:f$="maze 3":lv=lv+1:goto210
830 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto660
840 ifok<>19then1090
850 poke53281,76:printoo$"lets see if you can conquer this..."
860 jp=3:f$="maze 4":x=12:y=20:ch=1:cl=0:lv=lv+1:goto220
870 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto660
880 ifok<>19then1090
890 poke53281,76:printoo$"you may advance to a new level![146]"
900 lv=lv+1:jp=4:f$="maze 5":goto210
910 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto660
920 ifok<>19then1090
930 poke53281,76:printoo$"you may attempt another level![146]"
940 lv=lv+1:jp=5:f$="maze 6":goto210
950 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto660
960 ifok<>19then1090
970 poke53281,76:printoo$"try this next level![146]"
980 lv=lv+1:jp=6:f$="maze 7":goto210
990 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto660
1000 ifok<>19then1090
1010 print"[147] you have won... but not conquered!"
1020 print:print" i will return!"
1025 if pb then pb=0:goto1035
1030 gosub1570:fort=1to2000:next:gosub1810:print"[147]";:goto1850
1035 print"[147]";:goto1850
1040 ifpeek(x3-40)=32thenj=126:poke54283,21:poke54280,y*9:poke54283,20:goto400
1050 ifpeek(x3-40)=99thend=.:j=126:goto530
1060 j=peek(56320):ifj=119orj=123thensm=1:goto420
1070 j=111:goto480
1080 poke54283,129:poke54280,5:return
1090 iflv=.then1840
1100 poke53281,76:printoo$"you were lucky this time[146]!"
1110 ifjp=.thenstop
1120 lv=lv-2:on jp goto780,820,860,900,940,980,1090
1130 poke56334,peek(56334)or1:poke53272,(peek(53272)and240)+12
1140 ifpeek(12288)=60then1180
1150 ml=8:load"parts",8,1
1160 fori=.to255:forj=.to7:get#1,a$:poke12288+j+i*8,asc(a$+chr$(.)):nextj,i
1170 close2
1180 print"[147]";
1190 print"[147]";
1200 print"[147][144]";:jq=56320:poke198,0:sw=12:poke53281,0:poke53280,0:jp=0:mz=7
1205 print"press 'q' to return to loadstar"
1210 print"press fire to play"
1220 cq=cq+1:forg=1tosw:geta$:ifa$=""andpeek(jq)=127thennext
1230 ifa$<>""orpeek(jq)<>127then1300
1240 ifcq=1orcq=9thenprint"[144]";:goto1205
1250 ifcq=2orcq=8thenprint"[151]";:goto1205
1260 ifcq=3orcq=7thenprint"[152]";:goto1205
1270 ifcq=4orcq=6thenprint"[155]";:goto1205
1280 ifcq=5thenprint"";:goto1205
1290 cq=1:sw=abs(sw)-1:goto1240
1300 if a$ ="q" then 62999
1305 poke53281,12:poke53280,12:print"[147]o thank you[146] o":gosub1830:gosub1770
1310 ifga=1thenforg=1to1000:next:goto1500
1320 print"[147]ron coffen"
1330 print" presents":forg=1to2500:next
1340 fort=.to24:poke54272+t,0:next
1350 print:print"[147][153]gggggggggggggggggggggggggggggggggggggggg"
1360 print"[149] eee e e
1370 [153]" e e e e
1380 print" eeeee e e
1390 [153]" e e e e
1400 print" e e eeee eeee
1410 [153]
1420 [153]
1430 [153]" eee e e eee e eee eee
1440 print" e e e e e e e e
1450 [153]" ee e e e e ee ee
1460 print" e e e e e e e
1470 [153]" eee e e eee eee eee eee
1480 print:print"[153][153]gggggggggggggggggggggggggggggggggggggggg"
1490 return:gosub1680
1500 print"";:print" press fire on joystick 2."
1510 print" [144]oo"
1520 ifpeek(56320)=127then1520
1530 :x1=1043:x2=920:gosub1810:fort=65to73:pokex1+x2,t:forh=1to60:next:next
1540 x1=1044:x2=920:gosub1810:fort=65to73:pokex1+x2,t:forh=1to60:next:next
1550 gosub1610:goto140
1560 stop
1570 gosub1830:rem"[192][192][192] last x[192][192][192]"
1580 poke54296,15:poke54277,8:poke54278,255:poke54276,23:f1=10:forz=1to24:f2=30
1590 poke54273,f1:fory=1to10:poke54287,f2:f2=f2*1.01:next:f1=f1+8:next:poke54296,0
1600 return
1610 gosub1830:rem"[192][192][192] hyper [192][192][192]"
1620 poke54296,15:poke54277,8:poke54278,255:poke54276,21:f1=2:forz=1to24:f2=80
1630 poke54273,f1:fory=1to5:poke54287,f2:f2=f2/1.1:next:f1=f1+9:next:poke54296,0
1640 return
1650 gosub1830:rem"[192][192][192] decel [192][192][192]"
1660 poke54296,15:poke54277,8:poke54278,255:poke54276,85:f1=100:f2=230:forz=1to77
1670 poke54272,f1:poke54287,f2:f2=f2-2:f1=f1*.99:next:poke54296,0:return
1680 rem"[192][192][192] cryst [192][192][192]"
1690 poke54296,15:poke54277,15:poke54298,17:poke54276,19:poke54287,64:forn=1to4
1700 forf=1to255step1.5:poke54273,f:nextf
1710 forf=255to1step-1.5:poke54273,f:nextf:nextn:poke54296,0:return
1720 gosub1830:rem"[192][192][192] alien [192][192][192]"
1730 poke54296,15:poke54277,15:poke54286,67:poke54287,12:poke54276,21
1740 forf=.to255step2:poke54273,f:nextf
1750 forf=255to0step-2:poke54273,f:next:return
1760 j=peek(56320):return
1770 rem"[192][192][192] fall [192][192][192]"
1780 q=50:f2=150:poke54296,15:poke54277,4:poke54278,12:forz=1to50
1790 f1=int(100*rnd(1))+10:poke54276,23:fort=1toq:next:poke54273,f1:poke54287,f2
1800 poke54276,20:q=q-1:f2=f2-3:next:poke54273,30:return
1810 gosub1830:poke54284,16:poke54285,242:poke54296,15:poke54283,129:poke54280,5
1820 return
1830 forg=54272to54296:pokeg,0:next:return
1840 print"[147] p game over[146] p":gosub1650
1850 forg=1to1000:next:clr:restore:ga=1::po